// 简单的vuex
import { reactive } from "vue";

export const store={

    state:reactive({
        notification:'msg',
        notiId:0,
        safe:{
            pass:"123456",
            check:false,
        }
    }),
    setNotification(msg:string){
        this.state.notiId++
        this.state.notification=msg
    },
    SignOut(){
        this.state.safe.check=false
    },
    GetLoginFlag(){
        return this.state.safe.check
    }

}